package edu.hcnu.config;

import edu.hcnu.resolver.MyLocaleResolver;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.LocaleResolver;


/**
 * 语言配置
 *
 * @author Administrator
 * @date 2023/04/09
 */
@Configuration
public class LanguageConfig {
    @Bean
    public LocaleResolver localeResolver(){
        return new MyLocaleResolver();
    }
}
